import request from '@/utils/request'


export function getList(data) {
  return request({
    url: `/moniter-groups/page/${data.current}/${data.size}`,
    method: 'get'
  })
}
export function searchList(data){
    return request({
        url: `/moniter-groups/name/${data}`,
        method: 'get'
      })
}
export function doAdd(data){
    return request({
        url: '/moniter-groups',
        method: 'post',
        data
    })
}
export function doEdit(data) {
  return request({
    url: '/moniter-groups',
    method: 'put',
    data
  })
}
export function doDelete(id) {
  return request({
    url: `/moniter-groups/id/${id}`,
    method: 'delete'
  })
}
export function getOne(id) {
  return request({
    url: `/sys-user/id/${id}`,
    method: 'get'
  })
}
export function getAll() {
  return request({
    url: `/moniter-groups`,
    method: 'get'
  })
}
